-- card: 15830 from stack: in -- bmap block id: 18729 -- flags: 0000 -- background id: 12278 -- name: dectohex ----- HyperTalk script ----- on opencard if card field "decimal"is empty then put "100" into card field "decimal" end opencard -- part 1 (button) -- low flags: 00 -- high flags: A003 -- rect: left=41 top=287 right=319 bottom=105 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Convert ----- HyperTalk script ----- on mouseUp put card field "decimal" into temp put dectohex(temp) into card field "hex" end mouseUp -- part 2 (field) -- low flags: 00 -- high flags: 0004 -- rect: left=111 top=294 right=312 bottom=229 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: decimal ----- HyperTalk script ----- on returninfield click at loc of card button "Convert" end returninfield on enterinfield end enterinfield -- part 3 (field) -- low flags: 01 -- high flags: 0004 -- rect: left=237 top=294 right=312 bottom=355 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: hex -- part contents for background part 68 ----- text ----- The DecToHex XFCN takes a decimal value and converts it to a corresponding string of hex digits. The decimal value can be any signed long integer or any positive unsigned long integer. If you are unsure of the operation of this XFCN, experiment with the demonstration provided below. Just enter any decimal value into the decimal field and click on the Convert button to see its hex value appear in the Hex field. -- part contents for card part 3 ----- text ----- 154E -- part contents for card part 2 ----- text ----- 5454